package com.czxy.demo04;

import java.util.HashMap;
import java.util.Map;

/**
 * Created by hp on 2020/2/1.
 */
public class Test21 {
    public static void main(String[] args) {
        Map<String,Integer> map = new HashMap<>();
        map.put("柳岩",2100);
        map.put("张亮",1700);
        map.put("诸葛亮",1800);
        map.put("灭绝师太",2600);
        map.put("东方不败",3800);

        for (String s : map.keySet()) {
            if (s.equals("柳岩")){
                map.put(s,map.get(s)+300);
            }
        }
        for (String s : map.keySet()) {
            System.out.println(s+"="+map.get(s));
        }
    }
}
